<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common.jsp"%>
<script type="text/javascript">
function save1() {
        var pagetype="add";   
        var TOKEN=$("#TOKEN").val();
        var tName=$("#tName").val();
        var remark=$("#remark").val();
        var url=$("#url").val();
        //alert(url);
    	$.post(url,
      	{	
    		pagetype:pagetype,
    		TOKEN:TOKEN,
    		tName:tName,
    		remark:remark
		},function(data)
				{
				$.pdialog.closeCurrent();
				}
		);
    	}
function save()
{
	document.getElementById('teacher').value=document.getElementById('teacherview.id').value;
   	var auditForm=$("#form1");   
    auditForm.submit(); 
}
</script>	
<div class="pageContent">
	<form id="form1" method="post" action="${rootDir }/info/add.classinfo.do"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" name="TOKEN" id="TOKEN" value="${TOKEN}">
		<input type="hidden" name="pagetype" id="pagetype" value="add">	
		<input type="hidden" name="url" id="url" value="${rootDir }/info/add.classinfo.do">
		<input type="hidden" name="teacher" id="teacher" value="">	
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>名称：</label> 
				<input id="tName" name="tName" type="text" size="30" class="required" />
			</p>
			<p>
				<label>年份：</label> 				
				<select id="year" name="year" class="required combox">				 	
					<option value="2011">2011</option>	
					<option value="2012" selected>2012</option>	
					<option value="2013">2013</option>	
					<option value="2014">2014</option>
					<option value="2015">2015</option>							
				</select> 
			</p>
			<p>
				<label>班主任：</label> 
				<input name="teacherview.id" id="teacherview.id" type="hidden" value=""/>
				<input id="teacherview" name="dwz.teacherview.orgName" type="text" suggestFields="orgNum,orgName" 
					suggestUrl="${rootDir }/select/list.teacher.do" lookupGroup="teacherview" value="" readonly="readonly" size="26" />
				<a class="btnLook" href="${rootDir }/select/list.teacher.do" lookupGroup="teacherview"  id="lookupCourseCate">查找带回</a>	
			</p>
			<p>
				<label>教师组：</label> 
				<select id="teacherGroup" name="teacherGroup" class="required combox">								 	
					 <c:forEach items="${tgLst}" var="reslst" varStatus="status">
						<option value="${reslst.id}">${reslst.TName}</option>
					</c:forEach>							
				</select> 
			</p>
			<p>
				<label>备注：</label> <input id="remark" name="remark" type="text"
					size="30" value="" alt="" />
			</p>	
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="button" onclick="javascript:save()">
							保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div>
